<?php
namespace ImiDemo\HttpDemo\MainServer\Model;

use Imi\Model\Model;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * Test
 * @Entity
 * @Table(name="tb_test", id={"id", "a"})
 */
class Test extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * a
     * @Column(name="a", type="varchar", length=255, accuracy=0, nullable=true, default="", isPrimaryKey=true, primaryKeyIndex=1, isAutoIncrement=false)
     * @var string
     */
    protected $a;

    /**
     * 获取 a
     *
     * @return string
     */ 
    public function getA()
    {
        return $this->a;
    }

    /**
     * 赋值 a
     * @param string $a a
     * @return static
     */ 
    public function setA($a)
    {
        $this->a = $a;
        return $this;
    }

    /**
     * b
     * @Column(name="b", type="varchar", length=255, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $b;

    /**
     * 获取 b
     *
     * @return string
     */ 
    public function getB()
    {
        return $this->b;
    }

    /**
     * 赋值 b
     * @param string $b b
     * @return static
     */ 
    public function setB($b)
    {
        $this->b = $b;
        return $this;
    }

    /**
     * c
     * @Column(name="c", type="varchar", length=255, accuracy=0, nullable=true, default="dsf", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $c;

    /**
     * 获取 c
     *
     * @return string
     */ 
    public function getC()
    {
        return $this->c;
    }

    /**
     * 赋值 c
     * @param string $c c
     * @return static
     */ 
    public function setC($c)
    {
        $this->c = $c;
        return $this;
    }

    /**
     * t
     * @Column(name="t", type="timestamp", length=0, accuracy=0, nullable=true, default="CURRENT_TIMESTAMP", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $t;

    /**
     * 获取 t
     *
     * @return string
     */ 
    public function getT()
    {
        return $this->t;
    }

    /**
     * 赋值 t
     * @param string $t t
     * @return static
     */ 
    public function setT($t)
    {
        $this->t = $t;
        return $this;
    }

}